﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="ProductDetail.aspx.cs" Inherits="ShoppingCartWEB.ProductDetail" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <asp:Image ID="Image1" runat="server" />
    <div id="product-title" style="width:555px;float:left;">
        <%= pr.ProductName %>
    </div>
    <div id="product-image" style="max-width:235px;float:left;">
        <img src="<%= pr.imageLink %>" />
     </div>
    <div id="product-description" style="width:320px;float:left;">
        <table>
            <tr>
                <td>
                    Danh mục:
                </td>
                <td>
                    <a href="Products.aspx?cid=<%= pr.CategoryID %>">
                        <%= sCategory %>
                    </a>
                </td>
            </tr>
            <tr>
                <td>
                    Nhà cung cấp:
                </td>
                <td>
                    <a href="Products.aspx?sid=<%= pr.SupplierID %>">
                        <%= sSupplier %>
                    </a>
                </td>
            </tr>
            <tr>
                <td>
                    Giá:
                </td>
                <td>
                    <%= pr.ProductPrice %>
                </td>
            </tr>
            <tr>
                <td>
                    Mô tả:
                </td>
                <td>
                    <%= pr.Decription %>
                </td>
            </tr>
            <tr>
                <td>
                    Trạng thái:
                </td>
                <td>
                    <%= isStored %>
                </td>
            </tr>             
        </table>

        <div>
            <asp:ImageButton ID="btnAddCart" class="item_button_cart" runat="server" CommandName="AddToCart" ImageUrl="~/Images/AddToCard.png"/>
        </div>
    </div>
</asp:Content>
